package com.bci.pwtz.mysql.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.bci.pwtz.mysql.model.AdminOperateLog;

public interface AdminOperateLogMapper {
    int deleteByPrimaryKey(Long logId);

    int insert(AdminOperateLog record);

    int insertSelective(AdminOperateLog record);

    AdminOperateLog selectByPrimaryKey(Long logId);

    int updateByPrimaryKeySelective(AdminOperateLog record);

    int updateByPrimaryKey(AdminOperateLog record);
    
    List<AdminOperateLog> selectLogs(@Param("type") int operationType,@Param("beginTime") String beginTime,@Param("endTime") String endTime,@Param("userid")Long userid,
            @Param("userName") String userName,@Param("benginIndex") int benginIndex, @Param("pageSize") int pageSize);

    int selectLogsNum(@Param("type") int operationType,@Param("beginTime") String beginTime,@Param("endTime") String endTime,@Param("userid")Long userid,@Param("userName") String userName);
}